package com.kehutong.help.mini;

import com.kehutong.help.entity.Help;
import org.coraframework.inject.Inject;
import org.coraframework.json.JSONObject;
import org.coraframework.mvc.MvcAction;
import org.coraframework.mvc.http.ReqMapping;
import com.kehutong.help.service.HelpClassifyService;
import com.kehutong.help.service.HelpService;

/**
 * 小程序端-帮助管理
 */
@MvcAction
@ReqMapping("/kht-bin/mini/crm/navigation")
public class HelpAction {

    @Inject
    private HelpClassifyService classifyService;
    @Inject
    private HelpService helpService;

    @ReqMapping("/list")
    public Object list(JSONObject jsonObject) {
        jsonObject.put("showStatus", true);
        return helpService.list(jsonObject);
    }

    @ReqMapping("/classify/list")
    public Object classifyList(JSONObject jsonObject) {
        return classifyService.list(jsonObject);
    }

    @ReqMapping("/detail")
    public Object detail(Help help) {
        return helpService.detail(help);
    }
}
